home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software USA 4 #10
/
Software USA Volume 4.10.iso
/
pc
/
educate
/
mmlogi
/
run
/
examples
/
advanced
/
robot3.lgi
< prev
next >
Wrap
Text File
|
1995-01-01
|
4KB
|
196 lines
41 1 2
38 1
19 -375 -9 -316 -28 1
D1
19 -375 15 -316 -4 1
D0
19 -375 38 -316 19 1
Clock
20 -182 15 -123 -4 1
Color
26 -314 -88 64 -290 0 ..\bitmaps\Road.bmp 1
22 -189 -53 42 -73 0 \NUL
See page 2 for the brains of the car
43 -249 21 -200 -77 0 5 50 50 0 25 25 ..\Bitmaps\Car0.bmp
22 -189 -34 38 -54 0 \NUL
See page 3 for the "state diagram"
8 -374 -29 -325 -78 0 0
22 -373 -76 -329 -96 0 \NUL
Lights
1 -319 5 -248 5
1 -319 -19 -248 -1
1 -319 5 -248 -13
1 -319 -19 -248 -19
1 -319 28 -248 17
1 -203 5 -181 5
1 -328 -54 -248 -25
38 2
6 -388 -109 -339 -158 1 3
28 -123 173 -74 58 1 robot_lo.txt
28 -122 47 -73 -68 1 robot_hi.txt
31 51 -134 100 -219 0 2
31 50 -41 99 -126 0 2
31 49 49 98 -36 0 2
31 48 137 97 52 0 2
10 160 -171 177 -188 2 0
10 168 -78 185 -95 2 0
10 177 12 194 -5 2 0
10 185 100 202 83 2 0
10 -185 34 -168 17 0 0
10 -168 52 -151 35 0 0
10 -179 40 -162 23 0 0
10 -174 46 -157 29 0 0
10 160 -233 177 -250 0 0
10 168 -239 185 -256 0 0
10 177 -246 194 -263 0 0
10 185 -253 202 -270 0 0
10 -185 -233 -168 -250 0 0
10 -168 -253 -151 -270 0 0
10 -174 -246 -157 -263 0 0
10 -180 -239 -163 -256 0 0
10 -185 160 -168 143 0 0
10 -179 166 -162 149 0 0
10 -174 172 -157 155 0 0
10 -168 178 -151 161 0 0
10 -64 106 -47 89 0 0
10 -72 112 -55 95 0 0
10 -64 224 -47 207 0 0
10 -72 217 -55 200 0 0
10 -323 217 -306 200 0 0
10 -335 224 -318 207 0 0
10 -334 -172 -317 -189 0 0
10 -323 -149 -306 -166 0 0
14 -33 158 16 109
10 -84 -137 -67 -154 0 0
24 115 -140 164 -189 1 1
24 115 -47 164 -96 1 1
24 115 43 164 -6 1 1
24 114 131 163 82 1 1
5 -310 263 -261 214 1
10 34 247 51 230 0 0
7 -77 -196 -28 -245 0 1
5 -254 263 -205 214 1
9 -77 -155 -28 -204 1000 20
19 -242 -136 -183 -155 1000
Color
20 -306 -171 -247 -190 1000
D1
20 -306 -148 -247 -167 1000
D0
20 -306 -124 -247 -143 1000
Clock
22 -390 -274 -30 -294 0 \NUL
This is a state machine to give the commands to follow
22 -390 -255 -186 -275 0 \NUL
a black line on a white surface.
22 -299 -33 -182 -53 0 \NUL
There is a simple
22 -299 -14 -201 -34 0 \NUL
program in the
22 -390 -225 -184 -245 0 \NUL
Page 3 has the "state diagram"
22 -299 5 -234 -15 0 \NUL
memorys
22 -39 181 88 161 0 \NUL
The muxes choose
22 -39 200 106 180 0 \NUL
1 of 2 next addresses
22 -39 219 97 199 0 \NUL
based on color seen
1 -76 -23 49 97
1 -76 -29 50 9
1 -76 -35 51 -81
1 -76 -41 52 -174
1 -76 -47 49 91
1 -76 -53 50 3
1 -76 -59 51 -87
1 -76 -65 52 -180
1 169 -180 168 -242
1 169 -242 -177 -242
1 -176 -242 -177 25
1 -176 25 -121 25
1 177 -87 176 -248
1 177 -248 -172 -248
1 -171 -248 -171 31
1 -170 31 -121 31
1 186 3 185 -255
1 186 -255 -166 -255
1 -165 -255 -166 37
1 -165 37 -121 37
1 194 91 193 -262
1 194 -262 -160 -262
1 -159 -262 -160 43
1 -159 43 -121 43
1 -176 25 -177 151
1 -170 31 -171 157
1 -165 37 -166 163
1 -159 43 -160 169
1 -159 169 -122 169
1 -165 163 -122 163
1 -170 157 -122 157
1 -176 151 -122 151
1 -77 97 -56 97
1 -77 103 -64 103
1 -63 103 -64 208
1 -55 97 -56 215
1 -63 208 -315 208
1 -55 215 -327 215
1 -326 215 -326 -181
1 -314 208 -315 -158
1 49 133 13 133
1 50 45 13 133
1 51 -45 13 133
1 52 -138 13 133
1 -75 -146 52 -150
1 -75 -146 51 -57
1 -75 -146 50 33
1 -75 -146 49 121
1 97 -180 116 -180
1 161 -180 168 -180
1 94 91 115 91
1 160 91 193 91
1 95 3 116 3
1 96 -87 116 -87
1 161 -87 176 -87
1 161 3 185 3
1 -342 -134 -309 238
1 43 238 115 109
1 43 238 116 21
1 43 238 116 -69
1 43 238 116 -162
1 -75 -146 -76 -221
1 -264 238 -253 238
1 -208 238 42 238
1 -75 -146 -76 -180
1 -325 -181 -305 -181
1 -314 -158 -305 -158
1 -342 -134 -305 -134
1 -186 -146 -76 -146
38 3
26 -389 -27 119 -292 0 state.bmp 0
22 -389 -2 -2 -22 0 \NUL
"ok" means car is on black, "fail" means car is not on black
22 -389 17 186 -3 0 \NUL
Each state is assigned a unique binary number which represents an address in memory
22 -389 55 103 35 0 \NUL
The main purpose of the circuit is to simply choose the next address (state)
22 -389 36 -24 16 0 \NUL
The "backup" states unconditionally go to the next state
22 -389 74 78 54 0 \NUL
This problem became extremely simply once a state diagram was used
22 -389 93 16 73 0 \NUL
As you can see a bitmap can be used as a documentation tool
39 16777215
47 1
40 0 20 200
30
System
16
700
0
0
1
2
2
34